#pragma once
#include"MyRBTree.h"

namespace MYSPACE{
template<class K>
class MySet{
  struct SetKOfVCompare{
    const K& operator()(const K &data)
    {
      return data;
    }
  };
  private:
    RBTree<K,K,SetKOfVCompare> _RBTree;
  public:
    typedef typename RBTree<K,K,SetKOfVCompare>::iterator iterator;
    MySet(){}
    std::pair<iterator,bool> insert(const K &data)
    {
      return _RBTree.insert(data);
    }
    iterator find(const K& key)
    {
      _RBTree.find(key);
    }
    iterator begin()
    {
      return _RBTree.begin();
    }
    iterator end()
    {
      return _RBTree.end();
    }
};
}
